<template>
    <div>
        <el-table :data="merchants_list">
          <el-table-column label="商家名称" prop="nickname"></el-table-column>
          <el-table-column label="修改">
              <template #default="scope">
                  <el-button type="merchants_update" @click="update_mc(scope.row.id)"></el-button>utton
              </template>
          </el-table-column>
        </el-table>
    </div>
</template>

<script>
import Axios from 'axios'
import qs from 'qs'
export default {
    name :"Business_Management",
    data(){
        return{
            merchants_list: [],

        }
    },
    mounted(){
        Axios.get("http://127.0.0.1:8000/shop/get_merchants/" + id)
        .then((resp) => {
        console.log("获取到的数据", resp);
        if (resp.data.code == 200) {
          console.log("获取成功", resp);
          this.merchants_list = resp.data.data;
        }
      })
      .catch((err) => {
        console.log("获取失败", err);
      });
    }
}
</script>

<style>

</style>